x86/pv/domain: clean up switch_compat
authorWei Liu <wei.liu2@citrix.com>
Wed, 26 Apr 2017 15:28:37 +0000 (16:28 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 7 Jun 2017 11:15:56 +0000 (12:15 +0100)
commit5c3dd032286e9084cd5d09b1945d69365a4d3d6e
tree8e028f617705256026b0d1d49322f54ff0815bf0
parentb3507d1b5b366cf11d4b3d29db78a3bfbadb1cda
x86/pv/domain: clean up switch_compat

Remove the redundant is_pv_domain check. Rearrange setup_compat calls.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/domain.c